package com.godpaper.the2tigers.support
{
	import mx.collections.ArrayCollection;
	
	public class ArrayCollectionEx extends ArrayCollection
	{
		public function ArrayCollectionEx(source:Array=null)
		{
			//TODO: implement function
			super(source);
		}
		/**
		 * override addItem,purpose is to filter IF-AND-ONLY-IF elements
		 * @param item
		 * 
		 */		
		override public function addItem(item:Object) : void
		{
			if(!contains(item))
			{
				addItemAt(item, length);
			}
		}
	}
}